package com.systop.supervise.service.Impl;

import com.systop.common.pojo.performance;
import com.systop.supervise.mapper.PerformanceMapper;
import com.systop.supervise.service.PerformanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class PerformanceServiceImpl implements PerformanceService {
    @Autowired
    private PerformanceMapper performanceMapper;

    @Override
    public int performanceadd(performance p) {
        return performanceMapper.performanceadd(p);
    }

    @Override
    public List<performance> performancetno(String tno) {
        return performanceMapper.performancetno(tno);
    }

    @Override
    public List<performance> performance_id_list(int performance_id) {
        return performanceMapper.performance_id_list(performance_id);
    }

    @Override
    public performance performance_id_p(int performance_id) {
        return performanceMapper.performance_id_p(performance_id);
    }

    @Override
    public List<performance> paikeId_tno(int elective_course_id) {
        return performanceMapper.paikeId_tno(elective_course_id);
    }

    @Override
    public int performanceUp(performance p) {
        return performanceMapper.performanceUp(p);
    }

    @Override
    public List<performance> sno_pkid_allow(performance p) {
        return performanceMapper.sno_pkid_allow(p);
    }

    @Override
    public int allow_flagfabu(performance p) {
        return performanceMapper.allow_flagfabu(p);
    }

    @Override
    public List<performance> performanceall() {
        return performanceMapper.performanceall();
    }

    @Override
    public int performancedel(Integer performance_id) {
        return performanceMapper.performancedel(performance_id);
    }
}
